{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    {:token()}


    <div class="layui-form-item">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-inline" style="width: 300px">
            <input type="text" name="date" id="date1" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">单价</label>
        <div class="layui-input-inline">
            <input type="text" name="price" lay-verify="required" autocomplete="off" placeholder="单价"
                   class="layui-input" value="">
        </div>
    </div>

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm','laydate'], function () {
        var yznForm = layui.yznForm;
        var laydate = layui.laydate;

        yznForm.bindevent($("form.layui-form"));

        laydate.render({
            elem: '#date1'
        });
    });
</script>
{/block}
